package FlexTrade;

import java.io.Serializable;
import java.util.UUID;

/*
 * This class holds all information about one auction
 */
public final class AuctionPrimitiveData implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 4049118875699197276L;
	public static int VICKREY_AUCTION_TYPE = 1;
	public static int ENGLISH_AUCTION_TYPE = 2;
	public static int DUTCH_AUCTION_TYPE = 3;
	
	public String uniqueAuctionID;
	public Product product;		//product in this auction
	public ProviderData provider;	//provider of this auction
	public long timeDuration;		//period that auction should be held
	public float askingPrice;		//asking price of Dutch auction
	public float acceptablePrice;	//acceptable price of Dutch auction
	public int auctionType;			//type of auction
	
	//Set default values for constructor for testing only
	public AuctionPrimitiveData() {
		// TODO Auto-generated constructor stub
		//unique ID of this auction. It helps to find auction object that customer interested in
		this.uniqueAuctionID = UUID.randomUUID().toString();
		this.timeDuration = 0;
		this.acceptablePrice = 0;
		this.askingPrice = 0;
		//this.product = new Product();
		//this.provider = new ProviderData();
		//this.auctionType = this.ENGLISH_AUCTION_TYPE;
	}
}
